#九九乘法表左对齐打印
line=""
for i in range(1,10):
    for j in range(1,i+1):
        line+="{}*{}={}{}".format(j,i,j*i,"\t")
    line+="\n"
print(line)

#九九乘法表右对齐打印
line=""
for i in range(1,10):
    for j in range(i,10):
        line+="{}*{}={}{}".format(i,j,j*i,"\t")
    line+="\n"+"\t\t"*i
print(line)